package ModelLayer;
import java.util.ArrayList;

/**
 * Write a description of class DVD here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class DVD
{   
    long id;
    private String title, artist, publicationDate;
    public ArrayList<Copy> copyList;   
    int index;

    /**
     * Constructor for objects of class DVD
     */
    public DVD(long id, String title, String artist, String publicationDate)
    {   
        this.id = id;
        this.title = title;
        this.artist = artist;
        this.publicationDate = publicationDate;
        
        // makes a copylist to list all eksemples of the DVD
        index = 0;
        copyList = new ArrayList<Copy>();    
    }
       
    /*****************************
     * Set methodes for DVD Class
     *****************************/    
    public void setId(long id)
    {
        this.id = id;
    }
   
    public void setTitle(String title)
    {
        this.title = title;
    }    
    
    public void setArtist(String artist)
    {
        this.artist = artist;
    }
    
    public void setPublicationDate(String publicationDate)
    {
        this.publicationDate = publicationDate;
    }
    
    /*****************************
     * get methodes for DVD Class
     *****************************/      
    public long getId()
    {
        return id;
    }        
    
    public String getTitle()
    {
        return title;
    }
    
    public String getArtist()
    {
        return artist;
    }
    
     public String getPublicationDate()
    {
        return publicationDate;
    }   
 
  
    /* 
     * Print information about the specific DVD
     */ 
    public void printInfo()
    {
        System.out.println("Title: " + title);
        System.out.println("Id: " + id);
        System.out.println("Artist: " + artist);
        System.out.println("Publication Date: " + publicationDate);
    }
    
}